package com.mosue.sample.sso.employee.controller;

import com.mosue.sample.sso.employee.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class EmployeeController {
    @Autowired
    private EmployeeService service;

    @RequestMapping("/employee/get_by_id")
    public Map<String, String> getById(String id) {
        return service.get_by_id(id);
    }


    @RequestMapping("/employee/get_by_id1")
    public Map<String, String> getById(@RequestParam MultiValueMap<String, String> params) {
        return service.get_by_id1(params);
    }
}
